// 封装录音
var recorderManager = tt.getRecorderManager();
var videoSource = "1111";

// console.log(recorderManager, "recordmangager")
recorderManager.onStart(() => {
  console.log('录音开始了')
  videoSource = ""
});
recorderManager.onError((res) => {
  // 录音失败的回调处理
  console.log('失败', res)
});
recorderManager.onStop((res) => {
  console.log("ressssss", res)
  // 停止录音之后，把录取到的音频放在res.tempFilePath
  videoSource = res.tempFilePath
  tt.setStorageSync('videoSource', videoSource);

  console.log("ressssss resss ", videoSource)

});

exports.recorderManager = recorderManager;

exports.videoSource = videoSource; 
